from pydantic import BaseModel

class Account(BaseModel):
    name: str
    password: str
    def from_json(json_data):
        return Account.model_validate_json(json_data)